//
//  YYXOneViewController.m
//  33-严雅兴
//
//  Created by YanYanxing on 2017/2/23.
//  Copyright © 2017年 yanyaxing. All rights reserved.
//

#import "YYXOneViewController.h"

@interface YYXOneViewController ()

@end

@implementation YYXOneViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    
    //设置视图背景--这种方式比较高性能
    NSString *path=[[NSBundle mainBundle]pathForResource:@"image01" ofType:@"jpg"];
    UIImage *image = [UIImage imageWithContentsOfFile:path];
    self.view.layer.contents = (id)image.CGImage;
    
    
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}


@end
